#ifndef         SWITCH_2108
#define         SWITCH_2018

//interface: obj which like switch on/off
class Switch
{
public:
    Switch():switchOpen(false){}
    virtual ~Switch(){}
protected:
    bool switchOpen;

public:
    virtual void on(){switchOpen = true;}
    virtual void off(){switchOpen = false;}
};


#endif // SWITCH_2108
